|
|
|
|
|
26
Using Data Access Objects (DAO) |
|
|
|
| |
 |
|
|
|
|
Introduction to DAO |
|
|
|
| |
 |
|
|
|
|
Setting Up a DAO Project |
|
|
|
| |
 |
|
|
|
|
Opening an Existing Database |
|
|
|
| |
 |
|
|
|
|
Deciding Which Recordset Type to Use |
|
|
|
| |
 |
|
|
|
|
Using Tables |
|
|
|
| |
 |
|
|
|
|
Using Dynasets |
|
|
|
| |
 |
|
|
|
|
Using Snapshots |
|
|
|
| |
 |
|
|
|
|
Using a Forward-Only Recordset |
|
|
|
| |
 |
|
|
|
|
Placing Information Onscreen |
|
|
|
| |
 |
|
|
|
|
Accessing Information from Database Fields |
|
|
|
| |
 |
|
|
|
|
Displaying Data in the Sample Program |
|
|
|
| |
 |
|
|
|
|
Positioning the Record Pointer |
|
|
|
| |
 |
|
|
|
|
Using the Move Methods |
|
|
|
| |
 |
|
|
|
|
Using the Bookmark Property |
|
|
|
| |
 |
|
|
|
|
Using the Find Methods |
|
|
|
| |
 |
|
|
|
|
Setting the Current Index in a Table |
|
|
|
| |
 |
|
|
|
|
Using the Seek Method |
|
|
|
| |
 |
|
|
|
|
Using the PercentPosition and AbsolutePosition Properties |
|
|
|
| |
 |
|
|
|
|
Using Filters, Indexes, and Sorts |
|
|
|
| |
 |
|
|
|
|
Setting the Filter Property |
|
|
|
| |
 |
|
|
|
|
Setting the Sort Property |
|
|
|
| |
 |
|
|
|
|
Creating a New Index |
|
|
|
| |
 |
|
|
|
|
Considering Programs That Modify Multiple Records |
|
|
|
| |
 |
|
|
|
|
Using Loops |
|
|
|
| |
 |
|
|
|
|
Using SQL Statements |
|
|
|
| |
 |
|
|
|
|
Understanding Other Programming Commands |
|
|
|
| |
 |
|
|
|
|
Adding Records |
|
|
|
| |
 |
|
|
|
|
Editing Records |
|
|
|
| |
 |
|
|
|
|
Updating Records |
|
|
|
| |
 |
|
|
|
|
Deleting Records |
|
|
|
| |
 |
|
|
|
|
Introducing Transaction Processing |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
27
Using Remote Data Objects (RDO) |
|
|
|
| |
 |
|
|
|
|
Database Access Philosophies |
|
|
|
| |
 |
|
|
|
|
Working with ODBC |
|
|
|
| |
 |
|
|
|
|
Understanding ODBC Drivers |
|
|
|
| |
 |
|
|
|
|
Setting Up an ODBC Data Source |
|
|
|
| |
 |
|
|
|
|
The Remote Data Objects |
|
|
|
| |
 |
|
|
|
|
Comparison of RDO to DAO |
|
|
|
| |
 |
|
|
|
|
Accessing a Database with RDO |
|
|
|
| |
 |
|
|
|
|
Using the RemoteData Control |
|
|
|
| |
 |
|
|
|
|
Comparing the RDC and the Data Control |
|
|
|
| |
 |
|
|
|
|
Setting Up the RDC |
|
|
|
| |
 |
|
|
|
|
From Here . . . |
|
|
|
| |
|
|
|
|
|
28
Using ActiveX Data Objects (ADO) |
|
|
|
| |
 |
|
|
|
|
Introducing ADO |
|
|
|
| |
 |
|
|
|
|
Data Connection Methods |
|
|
|
| |
 |
|
|
|
|
Installation |
|
|
|
| |
 |
|
|
|
|
Setting Up a Data Source |
|
|
|
| |
 |
|
|
|
|
Using the ADO Data Control |
|
|
|
| |
 |
|
|
|
|
Setting Up the ADO Data Control |
|
|
|
| |
 |
|
|
|
|
Connecting the ADO Data Control to a Data Source |
|
|
|
| |
 |
|
|
|
|
Displaying Data |
|
|
|
| |
 |
|
|
|
|
Changing the Record Source from Code |
|
|
|
| |
 |
|
|
|
|
Using the DataGrid Control |
|
|
|
| |
 |
|
|
|
|
Getting Data into the Grid |
|
|
|
| |
 |
|
|
|
|
Setting Up the DataGrid |
|
|
|
| |
 |
|
|
|
|
Splitting Up the Grid |
|
|
|
| |
 |
|
|
|
|
Customizing the Grid's Layout |
|
|
|
| |
 |
|
|
|
|
Customizing the Grid with Code |
|
|
|
| |
 |
|
|
|
|
Using ActiveX Data Objects |
|
|
|
| |
 |
|
|
|
|
Making the Connection with ADO |
|
|
|
| |
 |
|
|
|
|
Working with Recordsets |
|
|
|
| |
 |
|
|
|
|
The Command Object |
|
|
|
| |
 |
|
|
|
|
Disconnected Recordsets |
|
|
|
| |
 |
|
|
|
|
Creating a Disconnected Recordset |
|
|
|
| |